<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
	<h:head>
	<title>Add Airport</title>
</h:head>
<h:body>
	<h:form>
		<p:panel header="Registration Form">
			<h:panelGrid columns="3" id="regGrid">
				


				<h:outputLabel for="city">città:</h:outputLabel>
				<p:inputText id="city" value="#{AirportBean.airportDTO.city}" />
				<p:message for="city" />

				<h:outputLabel for="name">nome aeroporto:</h:outputLabel>
					<p:inputText id="name" value="#{AirportBean.airportDTO.name}"> 
						<f:validator validatorId="validateAirportName" /> 
					</p:inputText> 
				<p:message for="name" />
				
				
				
			</h:panelGrid>
			<p:commandButton value="Register" update="regGrid"
				action="#{AirportBean.register()}" />
		</p:panel>
	</h:form>
	<h:link outcome="/admin/index" value="HomePage" /> <br />
</h:body>
	
</html>